<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Jupitercountscore.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
body {
	text-align: center;
	line-height: 42px;
	font-family: 宋体;
	font-weight: bold;
	color: #FFFFFF;
	background-color: #000000;
}
.temp {
	margin: 0 auto;
	width: 1160px;
	border: 0px solid;
	text-align: center;
}
</style>
  </head>
  
  <body>
    <jsp:include page="../head.jsp"></jsp:include>
	<div class="temp">
		<table style="table-layout:fixed;">
		<tr>
			<td>玩家昵称</td>
			<td>上榜次数</td>
		</tr>
		<s:iterator value="pageBean.list" id="count">
		<tr>
			<td> <a href="playerinfo.html?uid=<s:property value="#count.uid" />"><s:property value="#count.nickname" /> </a> </td>
			<td><s:property value="#count.count" /></td>
		</tr>
		</s:iterator>
		</table>	
		 <br/>
    	共<s:property value="pageBean.allRow"/> 条记录
    	共<s:property value="pageBean.totalPage"/>页
    	当前第<s:property value="pageBean.currentPage"/>页
		<br/> 
		<s:if test="%{pageBean.currentPage == 1}">
 		第一页 上一页
 		</s:if>
    	<s:else>
    	<a href="selectcountscore.html?page=1">第一页</a>
    	<a href="selectcountscore.html?page=<s:property value="%{pageBean.currentPage-1}"/>">上一页</a>
    	</s:else>
    	<s:if test="%{pageBean.currentPage != pageBean.totalPage}">
    	<a href="selectcountscore.html?page=<s:property value="%{pageBean.currentPage+1}"/>">下一页</a>
    	<a href="selectcountscore.html?page=<s:property value="pageBean.totalPage"/>">最后一页</a>
		</s:if> 
		<s:else> 
		下一页 最后一页
		</s:else>
      </div>
	</div>
	
	
	
	<jsp:include page="../foot.jsp"></jsp:include>	
  </body>
</html>
